// JavaScript Document
var myapp=angular.module('myapp', ['ionic'])
.controller('MyappCtrl', function($scope) {

});
myapp.config(function ($stateProvider,$urlRouterProvider) {
    $stateProvider.state("index",{
		url: "/index",
		templateUrl:"index.html"
	});
	$stateProvider.state("register",{
		url: "/register",
		templateUrl:"register.html"
	});
	$stateProvider.state("member_center",{
		url: "/member_center",
		templateUrl:"member_center.html"
	});
	$stateProvider.state("record",{
		url: "/record",
		templateUrl:"record.html"
	});
	$urlRouterProvider.otherwise("/register")
})  